<?if(MEMBER):?>
<li>
    <a class="tab <?=APP=='chat'?' selected':''?>" href="/chat"><?=dgettext('friend','Chat')?></a>
</li>
<?endif;?>